<html>
<head>
<title>
Netlab Reference Manual linef
</title>
</head>
<body>
<H1> linef
</H1>
<h2>
Purpose
</h2>
Calculate function value along a line.

<p><h2>
Description
</h2>
<CODE>linef(lambda, fn, x, d)</CODE> calculates the value of the function
<CODE>fn</CODE> at the point <CODE>x+lambda*d</CODE>.  Here <CODE>x</CODE> is a row vector
and <CODE>lambda</CODE> is a scalar.

<p><CODE>linef(lambda, fn, x, d, p1, p2, ...)</CODE> allows additional
arguments to be passed to <CODE>fn()</CODE>.  
This function is used for convenience in some of the optimisation routines.

<p><h2>
Examples
</h2>
An example of 
the use of this function can be found in the function <CODE>linemin</CODE>.

<p><h2>
See Also
</h2>
<CODE><a href="gradchek.htm">gradchek</a></CODE>, <CODE><a href="linemin.htm">linemin</a></CODE><hr>
<b>Pages:</b>
<a href="index.htm">Index</a>
<hr>
<p>Copyright (c) Ian T Nabney (1996-9)


</body>
</html>